import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '@/views/index.vue'
import Login from '@/views/login.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    component: Index,
    // redirect:'/login'
  },
  {
    path:'/login',
    name:'login',
    component:Login
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
